#include <iostream>
#include "cylinder.h"

using namespace std;

Cylinder::Cylinder(): height(1) {}

Cylinder::Cylinder(double x, double y, double r, double h): Circle(x, y, r)
{
	height = h;
}

Cylinder::Cylinder(const Cylinder& cyl): Circle(cyl)
{
	height = cyl.height;
}

double Cylinder::Volume() const
{
	return Area() * height;
}

void Cylinder::Show() const
{
	Circle::Show();
	cout << "height = " << height << endl;
}
